Skip to content

Conversation

@Grufoony
Copy link
Collaborator

@Grufoony Grufoony commented Mar 6, 2025

No description provided.

if (i == std::ceil(transportCapacity) - 1) {
double integral;
double fractional = std::modf(transportCapacity, &integral);
if (fractional != 0. && uniformDist(this->m_generator) > fractional) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.1 rule Note

MISRA 12.1 rule
double integral;
double fractional = std::modf(transportCapacity, &integral);
if (fractional != 0. && uniformDist(this->m_generator) > fractional) {
bCanPass = false;

Check notice

Code scanning / Cppcheck (reported by Codacy)

time is Y2038-unsafe Note

time is Y2038-unsafe
bArrived = true;
} else {
const auto agentId{pStreet->queue(queueIndex).front()};
auto const& pAgent{this->agents().at(agentId)};

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 14.4 rule Note

MISRA 14.4 rule
}
if (destinationNode->isTrafficLight()) {
auto& tl = dynamic_cast<TrafficLight&>(*destinationNode);
auto const direction{pStreet->laneMapping().at(queueIndex)};

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 14.4 rule Note

MISRA 14.4 rule
continue;
}
}
if (!pAgent->isRandom()) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

time is Y2038-unsafe Note

time is Y2038-unsafe
}
}
if (!pAgent->isRandom()) {
if (destinationNode->id() ==

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 14.4 rule Note

MISRA 14.4 rule
if (!pAgent->isRandom()) {
if (destinationNode->id() ==
this->itineraries().at(pAgent->itineraryId())->destination()) {
bArrived = true;

Check notice

Code scanning / Cppcheck (reported by Codacy)

time is Y2038-unsafe Note

time is Y2038-unsafe
}
continue;
}
auto const& nextStreet{

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 14.4 rule Note

MISRA 14.4 rule
graph2.buildAdj();
Dynamics dynamics{graph2, false, 69, 0., dsm::weight_functions::streetLength, 1.};
dynamics.addItinerary(std::unique_ptr<Itinerary>(new Itinerary(0, 1)));
dynamics.updatePaths();

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note test

MISRA 12.3 rule
Dynamics dynamics{graph2, false, 69, 0., dsm::weight_functions::streetLength, 1.};
dynamics.addItinerary(std::unique_ptr<Itinerary>(new Itinerary(0, 1)));
dynamics.updatePaths();
dynamics.addAgent(0, 0, 0);

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note test

MISRA 12.3 rule
@codecov
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 96.96970% with 3 lines in your changes missing coverage. Please review.

Project coverage is 90.95%. Comparing base (f031e28) to head (59144c2).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/dsm/headers/RoadDynamics.hpp 96.72% 2 Missing ⚠️
src/dsm/sources/Street.cpp 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   90.72%   90.95%   +0.23%     
==========================================
  Files          36       36              
  Lines        5119     5153      +34     
  Branches      461      463       +2     
==========================================
+ Hits         4644     4687      +43     
+ Misses        475      466       -9     
Flag Coverage Δ
unittests 90.95% <96.96%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Grufoony Grufoony merged commit 6b1cbc8 into main Mar 6, 2025
31 checks passed
@Grufoony Grufoony deleted the floatingTransportCapacity branch March 6, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants